<!-- 404页面 -->
<template>
  <div class="not-found">
    <h1>404</h1>
    <p>NOT FOUND</p>
    <el-button type="primary" @click="goHome">返回首页</el-button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style scoped>
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

h1 {
  font-size: 6rem;
  margin-bottom: 1rem;
  color: #409eff;
}

p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #606266;
}
</style>
